package com.example.demo.service;

import org.springframework.stereotype.Service;

@Service
public class GreetingService {

    private final String msg;

    public GreetingService(String msg) {
        this.msg = msg;
    }

    public String sayHello() {
        return msg;
    }
}
